﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kollektiv.DB.NHibernate;

namespace Kollektiv.DataModel.Web.NHibernate
{
    public abstract class CommentMap<T> : WebContentMap<T> where T : Comment
    {
        public CommentMap()
            : base()
        {
            References<Content>(x => x.Content).Not.Nullable();
            References<User>(x => x.User).Not.Nullable();
        }
    }

    public class _CommentMap : CommentMap<Comment> { }
}
